const https = 'http://172.16.110.243:9999/'


function request(url, data, res, loginData) {
    fetch(https + url, {
        method: data,
        headers: {
            'Content-Type': 'application/json'
        },
        body: JSON.stringify(loginData)
    }).then(response => {
        return response.json()
    }).then(res)
}

export default request;
